﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XMLSpreadGear.Core;
using System.ComponentModel;

namespace XMLSpreadGear.Attributes
{
    [global::System.AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = true)]
    public sealed class CellTemplateAttribute : Attribute
    {
        // See the attribute guidelines at 
        //  http://go.microsoft.com/fwlink/?LinkId=85236
        readonly string strCaption;

        // This is a positional argument
        public CellTemplateAttribute(string caption)
        {
            this.strCaption = caption;

            // TODO: Implement code here
            
        }

        public string Caption
        {
            get { return strCaption; }
        }

        // This is a named argument
        public int NamedInt { get; set; }
        public bool AutoFitWidth { get; set; }
        public bool Hidden { get; set; }
        public ulong Index { get; set; }
        public ulong Span { get; set; }
        public string StyleID { get; set; }
        public double Width { get; set; }
        public string CellStyleID { get; set; }
        [DefaultValue(FormulaType.NONE)]
        public FormulaType Formula { get; set; }
    }
}
